package security.core.source.service;

import java.util.Map;
import java.util.Set;

import security.core.source.UserDetail;

public abstract class UserSourceService {
	private Map<String, Set<String>> userRolesMap;
	
	public UserSourceService() {
		this.userRolesMap = loadRoles();
	}
	
	public Map<String, Set<String>> getUserRolesMap() {
		return this.userRolesMap;
	}

	public abstract Map<String, Set<String>> loadRoles();
	public abstract UserDetail loadUserByName(String name);
}
